package com.bdqn.controller;

import com.bdqn.pojo.HisCheckResult;
import com.bdqn.service.HisCheckResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/hcr")
public class HisCheckResultController {
    @Autowired
    HisCheckResultService hisCheckResultService;
    @GetMapping("all")
    public List<HisCheckResult> selectAll(String checkItemName, String patientName, String createTime){
        List<HisCheckResult> list=hisCheckResultService.selectAll(checkItemName,patientName,createTime);
        return list;
    }
    @GetMapping("all2")
    public List<HisCheckResult> selectAll2(String checkItemName){
        List<HisCheckResult> list=hisCheckResultService.selectAll2(checkItemName);
        return list;
    }
}
